package cloud.keveri.response4j;

import cloud.keveri.base.result.ResponseStatus;

/**
 * <p>
 * 作者：沈自在
 **/
public interface ResponseStatusProvider {
    /**
     * 获得响应成功的ResponseMeta.
     */
    ResponseStatus defaultSuccess();

    /**
     * 获得失败的ResponseMeta.
     */
    ResponseStatus defaultError();


    /**
     * 从code和msg创建ResponseStatus
     */
    ResponseStatus newInstance(Integer code, String message);
}